From 169a89178301553c742fe12032eb4f661d35d3f8 Mon Sep 17 00:00:00 2001 From: Koos Joosten Date: Thu, 6 Dec 2018 15:45:47 +0100 Subject: [PATCH] tests from grammar --- itest/Dockerfile | 7 +++++++ itest/requirements.txt | 3 ++- itest/testing/constants.py | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/itest/Dockerfile b/itest/Dockerfile index 005b24b1..1d35c047 100644 --- a/itest/Dockerfile +++ b/itest/Dockerfile @@ -27,4 +27,11 @@ COPY --from=builder /usr/lib/x86_64-linux-gnu/libcleri* /usr/lib/x86_64-linux-gn COPY ./itest/ /itest/ WORKDIR /itest RUN pip install -r requirements.txt + +#exported grammar is needed for TestGrammar +COPY ./grammar/ /grammar/ +WORKDIR /grammar +CMD [ "python", "export_grammar.py"] + +WORKDIR /itest CMD [ "python", "run_all.py", "-m", "-b=Release" ] diff --git a/itest/requirements.txt b/itest/requirements.txt index f44e6797..8656f6c5 100644 --- a/itest/requirements.txt +++ b/itest/requirements.txt @@ -1,2 +1,3 @@ -siridb-connector psutil +pyleri +siridb-connector \ No newline at end of file diff --git a/itest/testing/constants.py b/itest/testing/constants.py index 2f65c700..d009608b 100644 --- a/itest/testing/constants.py +++ b/itest/testing/constants.py @@ -1,3 +1,4 @@ +PYGRAMMAR_PATH = '../grammar/pygrammar/' TEST_DIR = './testdir' SIRIDBC = '../{BUILDTYPE}/siridb-server' SERVICE = '/usr/local/bin/siridb-admin' -- 2.30.2